namespace MyBlogServer.Models
{
    public class Post
    {
        public int Id { get; set; }
        public string Title { get; set; } = string.Empty;
        public string Content { get; set; } = string.Empty;
        public string? Summary { get; set; }
        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
        public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
        public bool Published { get; set; } = false;
        public string? Slug { get; set; }
        public string? Tags { get; set; }
        // 添加阅读数属性
        public int ViewCount { get; set; } = 0;
    }
}